package com.eleadmin.order.service;

import com.eleadmin.common.core.web.JsonResult;
import com.eleadmin.common.system.entity.User;
import com.eleadmin.damon.utils.results.PageResult2;
import com.eleadmin.order.entity.ContainerBill;
import com.eleadmin.order.entity.Ocean;
import com.eleadmin.order.param.OceanParam;
import org.apache.poi.ss.formula.functions.T;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 海运服务类
 * @author : Doman
 * @date : 2023-04-24 11:26:09
 * @version ：1.0
 */
public interface OceanService {

    /**
     * 分页查询
     * @param page
     * @param ocean
     * @return
     */
    public JsonResult list(PageResult2<T> page, Ocean ocean, User loginUser) throws Exception;

    /**
     * 获取list
     * @param ocean
     * @return
     */
    public JsonResult list(OceanParam ocean, User loginUser);

    /**
     * 根据Id查询
     * @param id
     * @return
     */
    public JsonResult getById(String id);

    /**
     * 保存
     * @param ocean
     * @param loginUser
     * @return
     */
    public JsonResult save(Ocean ocean, User loginUser);

    /**
     * 修改
     * @param ocean
     * @param loginUser
     * @return
     */
    public JsonResult update(Ocean ocean, User loginUser);

    /**
     * 删除
     * @param id
     * @param loginUser
     * @return
     */
    public JsonResult remove(String id, User loginUser);
    /**
     *
     * 导出客户海运账单
     * @return
     */
    public void exportsOcean(Ocean ocean, User loginUser, HttpServletResponse response, HttpServletRequest request)throws Exception;

    /**
     * 应收应付分类导出财务报表
     * @param loginUser
     * @return
     */
    public JsonResult exportsFinance(Ocean ocean, User loginUser, HttpServletResponse response, HttpServletRequest request) throws Exception;

}
